#define _CRT_SECURE_NO_WARNINGS
#include "1.2_hs.h"

int m = 1;
int s = 6;

int add(int a, int b)
{
	return a + b;
}

void test()
{
	static int m = 1;
	printf("%d\n", m++);
}

struct xr* set_struct_xr_f(struct xr* x)
{
	strcpy(x->sex, "Ů");
	x->age = 18;
	x->s.chinese = 150;
	x->s.math = 150;
	x->s.english = 150;
	return x;
}

void Print_struct_xr(struct xr* p)
{
	printf("%s %s %d %d %d %d\n", p->name, p->sex, p->age, p->s.chinese, p->s.english, p->s.math);
}

struct xr* set_struct_xr_s(char name[], struct xr* p)
{
	strcpy(p->name, name);
	strcpy(p->sex, "Ů");
	p->s.chinese = 150;
	p->s.english = 150;
	p->s.math = 150;
	return p;
}